<?php use_stylesheets_for_form($form) ?>
<?php use_javascripts_for_form($form) ?>

<form action="<?php echo url_for('pktbk/' . ($form->getObject()->isNew() ? 'create' : 'update') . (!$form->getObject()->isNew() ? '?id=' . $form->getObject()->getId() : '')) ?>" method="post" <?php $form->isMultipart() and print 'enctype="multipart/form-data" ' ?>>
    <?php if (!$form->getObject()->isNew()): ?>
        <input type="hidden" name="sf_method" value="put" />
    <?php endif; ?>
    <table class="form">
        <tfoot>
            <tr>
                <td colspan="2">
                    <?php echo $form->renderHiddenFields(false) ?>
                    &nbsp;<a href="<?php echo url_for('pktbk/index') ?>">Back to list</a>
                    <?php if (!$form->getObject()->isNew()): ?>
                        &nbsp;<?php echo link_to('Delete', 'pktbk/delete?id=' . $form->getObject()->getId(), array('method' => 'delete', 'confirm' => 'Are you sure?')) ?>
                    <?php endif; ?>
                    <input type="submit" value="Simpan" class="button" />
                </td>
            </tr>
        </tfoot>
        <tbody>
            <?php echo $form->renderGlobalErrors() ?>
            <tr>
                <th><?php echo $form['nama']->renderLabel() ?></th>
                <td><?php echo $form['nama']->render(array('class' => 'panjang')) ?></td>
            </tr>
            <?php if ($form['nama']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['nama']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['kategori_kegiatan_bk_id']->renderLabel() ?></th>
                <td><?php echo $form['kategori_kegiatan_bk_id']->render() ?></td>
            </tr>
            <?php if ($form['kategori_kegiatan_bk_id']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['kategori_kegiatan_bk_id']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['tahun_awal']->renderLabel() ?></th>
                <td><?php echo $form['tahun_awal'] ?></td>
            </tr>
            <?php if ($form['tahun_awal']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['tahun_awal']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['tahun_akhir']->renderLabel() ?></th>
                <td><?php echo $form['tahun_akhir']->render() ?></td>
            </tr>
            <?php if ($form['tahun_akhir']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['tahun_akhir']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['penyelenggara']->renderLabel() ?></th>
                <td><?php echo $form['penyelenggara']->render(array('class' => 'panjang')) ?></td>
            </tr>
            <?php if ($form['penyelenggara']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['penyelenggara']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['keterangan']->renderLabel() ?></th>
                <td><?php echo $form['keterangan']->render(array('class' => 'panjang')) ?></td>
            </tr>
            <?php if ($form['keterangan']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['keterangan']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['bidang_bimbingan_list']->renderLabel() ?></th>
                <td><?php echo $form['bidang_bimbingan_list'] ?></td>
            </tr>
            <?php if ($form['bidang_bimbingan_list']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['bidang_bimbingan_list']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['daftar_bulan_list']->renderLabel() ?></th>
                <td><?php echo $form['daftar_bulan_list'] ?></td>
            </tr>
            <?php if ($form['daftar_bulan_list']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['daftar_bulan_list']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['fungsi_layanan_list']->renderLabel() ?></th>
                <td><?php echo $form['fungsi_layanan_list'] ?></td>
            </tr>
            <?php if ($form['fungsi_layanan_list']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['fungsi_layanan_list']->renderError() ?></td>
                </tr>
            <?php endif; ?>
            <tr>
                <th><?php echo $form['tingkat_list']->renderLabel() ?></th>
                <td><?php echo $form['tingkat_list'] ?></td>
            </tr>
            <?php if ($form['tingkat_list']->hasError()): ?>
                <tr>
                    <th>&nbsp;</th>
                    <td><?php echo $form['tingkat_list']->renderError() ?></td>
                </tr>
            <?php endif; ?>
        </tbody>
    </table>
</form>
